#ifndef _GWBASE_BASE_DAEMONIZE_H_
#define _GWBASE_BASE_DAEMONIZE_H_

#include <boost/function.hpp>

namespace dicom {

class Daemon {
 public:
  typedef int (*MainFunction)(void* arg);

  Daemon(MainFunction main_func) : main_(main_func) {}
  ~Daemon() {}

  int Run(void* arg);

 private:
  MainFunction main_;
};
}

#endif  // _GWBASE_BASE_DAEMONIZE_H_
